﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zzva.Common;

namespace Zzva.DomainObject
{
    public class TDirSoftTypeNew : TDirSoftTypeBase
    {

        public TDirSoftTypeNew()
            : base()
        {
            mvarObozn = "";
            mvarNaim = "";
        }


        public TDirSoftTypeNew(string pObozn, string pNaim)
            : base()
        {
            Obozn = pObozn;
            Naim = pNaim;
        }


        public override string Obozn
        {
            get { return mvarObozn; }
            set
            {
                try
                {
                    string lObozn;
                    lObozn = value.TrimEnd();
                    if (lObozn == "") { throw (new CommonException("Обозначение не должно быть пустым")); }
                    mvarObozn = lObozn;
                }

                catch (Exception e) { throw e; }
                finally { }

            }
        }


        public override string Naim
        {
            get { return mvarNaim; }
            set { mvarNaim = value; }
        }

    }
}
